import fly from "flyio";


fly.interceptors.response.use(
    (response, promise) => {
        let data = response.data;
        data = typeof data === "string" ? JSON.parse(data) : data
        // console.log("response", data)
        return promise.resolve(data);
    },
    (err, promise) => {
        return promise.resolve();
    }
);

export default fly;
